﻿using System.Windows.Forms;

namespace DSAManager.Utils
{
   public class MsgBox
    {
       public static void Alert(string msg, string title = "提示", MessageBoxButtons button = MessageBoxButtons.OK, MessageBoxIcon icon = MessageBoxIcon.Information)
       {
           MessageBox.Show(msg, title, button, icon);
       }

       public static DialogResult Ask(string msg, string title = "询问", MessageBoxButtons button = MessageBoxButtons.YesNo, MessageBoxIcon icon = MessageBoxIcon.Question)
       {
           return MessageBox.Show(msg, title, button, icon);
       }
    }
}
